[PATCH 04/24] auth: Make struct settings_get_params params const
authorTimo Sirainen <timo.sirainen@open-xchange.com>
Wed, 25 Feb 2026 07:33:25 +0000 (09:33 +0200)
committerNoah Meyerhans <noahm@debian.org>
Tue, 31 Mar 2026 19:07:17 +0000 (15:07 -0400)
Gbp-Pq: Name CVE-2026-24031-27860-1.patch

src/auth/passdb-sql.c
src/auth/userdb-sql.c

index db1990dc47297f70f5404b303ee15e74cb34d55f..f3682d4926871ec3c2d144d7ae4ca3a7efaab699 100644 (file)
@@ -182,7 +182,7 @@ static void sql_lookup_pass(struct passdb_sql_request *sql_request)
        const struct passdb_sql_settings *set;
        const char *error;
 
-       struct settings_get_params params = {
+       const struct settings_get_params params = {
                .escape_func = passdb_sql_escape,
                .escape_context = module->db,
        };
index f97fe5e316c632c1e467834be528903624da7e23..349f61c49e42ae0f4d1cfe353f541e84ebdd8247 100644 (file)
@@ -128,7 +128,7 @@ static void userdb_sql_lookup(struct auth_request *auth_request,
        const struct userdb_sql_settings *set;
        const char *error;
 
-       struct settings_get_params params = {
+       const struct settings_get_params params = {
                .escape_func = userdb_sql_escape,
                .escape_context = module->db,
        };